package org.example.crop;

import io.minio.MinioClient;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan("org.example.crop.mapper")
@EnableTransactionManagement
public class CropApp {
    public static void main(String[] args) {
        SpringApplication.run(CropApp.class, args);
        System.out.println("crop");
    }
    @Bean
    public MinioClient getClient(){
        MinioClient minioClient = new MinioClient(

                "http://10.39.35.34:9000",
                "ip0PTMF243Ulvexj",
                "re7CLgsG4aLpQ4IGvTzrtiarcshEPx6w"
        );
        return minioClient;
    }
}
